package com.qfedu.tantu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.tantu.dto.IndexAdvertisementDto;
import com.qfedu.tantu.dto.IndexArticleDto;
import com.qfedu.tantu.entity.Advertisement;
import com.qfedu.tantu.entity.Article;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdvertisementDao extends BaseMapper<Advertisement> {
    @Select("select id,imgurl,info from t_advertisement limit 2")
    List<IndexAdvertisementDto> indexSelect ();

}
